home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr28 / par300.zip / EXAMPL09.STX < prev    next >
Text File  |  1995-04-07  |  2KB  |  25 lines

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE # 9    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │ THE INPUT FILE:  A DBase (DBF) file containing a list of computer experts.  │
  8. │                                                                             │
  9. │ WHAT WE WANT:    We will output the file's data in columnar format, with an │
  10. │                  appropriate heading at the top of each column.  We want    │
  11. │                  the contact's name, his voice number, and his fax number.  │
  12. │                                                                             │
  13. │ HOW WE DO IT:    When in DBF mode, there is no $FLINE.  Rather, each record │
  14. │                  is pre-parsed into fields.  This makes our job very easy.  │
  15. │                  We do, however, have to check the DELETED field:  if it is │
  16. │                  set to "Y", the field has been deleted from the database,  │
  17. │                  although it has not yet been replaced or removed.  We will │
  18. │                  skip any addresses from "Faster Publishing Ltd", using the │
  19. │                  IGNORE command.  We will use the TRACE command to generate │
  20. │                  a trace file that lets us watch the IGNOREs take effect.   │
  21. │                                                                             │
  22. └─────────────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;P
  25.